package lab02.test21;


public class test {
    public static int counter(String a, char b) {
        int count = 0;
        for (int i = 0; i < a.length(); i++) {
            if (a.charAt(i) == b) {
                count++;
            }
        }
        return count;
    }
    public static void main(String[] args) {
        System.out.println(new test().counter("Sometimes", 'm'));
    }
}
